﻿using Bootstrap.DataAccess;
using Bootstrap.DataAccess.Model;
using Bootstrap.Security;
using Longbow.Web.Mvc;
using System;
using System.Linq;

namespace Bootstrap.Admin.Query
{
    /// <summary>
    /// 
    /// </summary>
    public class QueryActiveCallsOption : PaginationOption
    {
        /// <summary>
        /// 活动呼叫
        /// </summary>
        /// <returns></returns>
        public QueryData<ActiveCalls> RetrieveData()
        {
            var data = ActiveCallsHelper.RetrievePages(this);
            var ret = new QueryData<ActiveCalls>();
            ret.total = data.TotalItems;
            ret.rows = data.Items;
            return ret;
        }
    }
}
